home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
ptv1n3.arc
/
MAIN.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-08-01
|
584b
|
25 lines
; Program MAIN.ASM
; Sample .COM program format in MASM 5.1 using
; simplified segment directives
; *** Do NOT use DOSSEG directive ***
.MODEL small ; *** Use small model ***
DGROUP GROUP _TEXT ; *** Add _TEXT to DGROUP ***
; *** Do NOT use .STACK directive ***
.DATA
msg db "Hello, World!", 13, 10, '$'
.CODE
ORG 0100H ; *** Set origin to 0100H ***
main:
mov dx, offset msg ; Display message
mov ah, 09h
int 21h
mov ax, 4C00h ; Exit for DOS 2.0 and above
int 21h
END main